package com.qf.weapon;

public class Demo03 {
    public static void main(String[] args) {

        HeroPlus gailun = new HeroPlus();
        gailun.setName("盖伦");
        gailun.setPower(100);
        gailun.setIntelligence(100);
        gailun.setAgile(100);

        LongSword longSword = new LongSword();
        longSword.setName("大宝剑");
        longSword.setType(0);
        longSword.setAtk(30);

        gailun.setWeapon(longSword);

        System.out.println(gailun.weaponAttack());

        Dagger dagger = new Dagger("锯齿", 0, 200);
        dagger.setSpr(10);
        gailun.setWeapon(dagger);
        System.out.println(gailun.weaponAttack());

        Staff staff = new Staff();
        staff.setAtk(100);
        staff.setRange(1);
        staff.setName("时光之杖");

        gailun.setWeapon(staff);
        System.out.println(gailun.weaponAttack());

        Archer archer = new Archer();
        archer.setName("橙弓");
        archer.setAtk(300);

        gailun.setWeapon(archer);
        System.out.println(gailun.weaponAttack());


    }
}
